﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ArticleWeb.Models
{
    public class ArticleFragment
    {
        public int ID { get; set; }
        /// <summary>
        /// 文章ID
        /// </summary>
        public int ArticleID { get; set; }

        /// <summary>
        /// 片段内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 内容长度
        /// </summary>
        public int Length { get; set; }

        /// <summary>
        /// 被引用次数, 不使用的字段
        /// </summary>
        public int Referenced { get; set; }

        /// <summary>
        /// 类别ID
        /// </summary>
        public int CategoryID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 编辑人员
        /// </summary>
        public Guid EditorID { get; set; }

        /// <summary>
        /// 标签
        /// </summary>
        public int TagID { get; set; }

        /// <summary>
        /// 审核状态
        /// </summary>
        public ArticleAuditState AuditState { get; set; }
    }

    public enum ArticleAuditState
    {
        未审核,
        已审核
    }
}